package com.lingyuan.product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lingyuan.product.domain.AttrEntity;
import com.lingyuan.product.mapper.AttrMapper;
import com.lingyuan.product.service.AttrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName AttrServiceImpl
 * @Description 描述
 * @Author guoxin
 * @Date 2024/9/19 20:39
 */
@Service
public class AttrServiceImpl extends ServiceImpl<AttrMapper,AttrEntity> implements AttrService {
    @Autowired
    private AttrMapper attrMapper;
    /**
     * 属性基本值列表
     * @return
     */
    @Override
    public List<AttrEntity> attrList(Long catelogId) {
        QueryWrapper<AttrEntity> attrEntityQueryWrapper = new QueryWrapper<>();
        return attrMapper.selectList(attrEntityQueryWrapper.eq("catelog_id", catelogId));
    }


}
